package com.example.zhunongzonghe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhunongzonghe.beans.ZnShoppingcartBean;
import com.example.zhunongzonghe.entity.ZnShoppingcart;

import java.security.Principal;
import java.util.List;


public interface IZnShoppingcartService extends IService<ZnShoppingcart> {

    List<ZnShoppingcartBean> showCart(String username);

    /**
     * 提交订单
     * @param znShoppingcartBean
     * @return
     */
    void commitOrder(ZnShoppingcartBean znShoppingcartBean, Principal principal);
}
